<?php
    session_start();
    require_once ("recursos/conf/cvcpa.conf");
    require_once ("recursos/librery/adodb/adodb.inc.php");
    require_once ("recursos/class/conexion.class.php");
    require_once ("recursos/class/sesion.class.php");
    require_once ("recursos/class/empleado.class.php");
    require_once ("recursos/class/configuracion.class.php");
    
    $obj_sesion  = new SESION();
    $obj_configuracion = new Configuracion();
    
    if($obj_sesion->validar_sesion())
    {
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SISTEMA DE GESTION PARA EL CONSEJO DE VIGILANCIA DE LA PROFESION DE CONTADURIA PUBLICA Y AUDITORIA</title>
    <script type="text/javascript" src="recursos/librery/ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="recursos/librery/ext/ext-all.js"></script>
    <script type="text/javascript" src="recursos/librery/ext/src/locale/ext-lang-es.js"></script>
    <link rel="stylesheet" type="text/css" href="recursos/librery/ext/resources/css/ext-all-notheme.css" />
    <link rel="stylesheet" type="text/css" href="recursos/librery/ext/resources/css/xtheme-blue.css" />
    <link rel="stylesheet" type="text/css" href="recursos/style/desktop.css" />
    <link rel="stylesheet" type="text/css" href="recursos/style/fileuploadfield.css" />
    <link rel="stylesheet" type="text/css" href="recursos/style/superboxselect.css" />
    
    <link REL="SHORTCUT ICON" HREF="recursos/image/escudo.png" />
    <!-- DESKTOP -->
    <script type="text/javascript" src="recursos/js/StartMenu.js"></script>
    <script type="text/javascript" src="recursos/js/TaskBar.js"></script>
    <script type="text/javascript" src="recursos/js/Desktop.js"></script>
    <script type="text/javascript" src="recursos/js/App.js"></script>
    <script type="text/javascript" src="recursos/js/Module.js"></script>
    <script src="load_configuracion.php"></script>
    <script type="text/javascript" src="recursos/js/Validar.js"></script>
    <script type="text/javascript" src="recursos/js/FileUploadField.js"></script>
    <script type="text/javascript" src="recursos/js/SuperBoxSelect.js"></script>
    <?php  $obj_configuracion->load_script($_SESSION["idempleado"]); ?>
    
    
</head>

<body scroll="no" oncontextmenu="return false">
    <div id="x-desktop">
    <dl id="x-shortcuts">
        <?php $obj_configuracion->load_ico_desktop($_SESSION["idempleado"]);?>
    </dl>
    </div>
    <div id="ux-taskbar">
        <div id="ux-taskbar-start"></div>
	<div id="ux-taskbuttons-panel"></div>
	<div class="x-clear"></div>
    </div>
</body>
</html>


<?php
    }
    else
    {
        $obj_sesion->go_login("./");
    }
?>
